<!-- inc:global_head -->
<!-- inc:right.css -->
<!-- inc:right.head -->

<!-- 分类列表 -->
<div class="table2">
	&nbsp;<a href="admin.php?file=index">系统首页</a>
	&raquo; <a href="admin.php?file=sysgroup&act=list">系统组管理</a>
	&raquo; <a href="admin.php?file=category&act=list&sysgroupid={:$sysgroupid}">{:$groupname}分类列表</a>
	<input class="OFF" type="button" value="添加根分类" onclick="window.location='admin.php?file=category&act=add&sysgroupid={:$sysgroupid}'">
</div>

<script language="JavaScript">
function delete_confirm(aaa)
{
	question = confirm("确认删除该分类吗？如果当前分类存在子分类或内容信息，是无法删除的\n\n\t删除后无法恢复！");
	if (question != "0")
	{
		window.location.href="admin.php?file=category&act=delete&sysgroupid={:$sysgroupid}&id="+aaa;
	}
}
</script>
<!-- $catelist AS $key=>$value -->
<div  style="border-bottom:1px solid #eee;" class="table" onmouseover="this.className='table table1'" onmouseout="this.className='table'" id="category_id_{:$value[id]}">
<table>
<tr>
	<td class="listinfo" width="300px">
		 {:$value[space]}<span style="color:#999">┠</span> {:$value[catename]} <span class="clue_on">[{:$value[id]}]</span>
		<!-- if(!$value[status] || $value[status] == 0) -->
		<span style="color:red;">[隐藏]</span>
		<!-- end -->
	</td>
	<td class="listact">
		<a href="#" onclick="qgurl('admin.php?file=category&act=modify&id={:$value[id]}');">编辑</a>
		<a href="#" onclick="delete_confirm({:$value[id]});" <?php if($key==0){ echo 'class="OFF"';}?> >删除</a> | 
		<a href="#" onclick="qgurl('admin.php?file=category&act=add&cateid={:$value[id]}')">添加子分类</a> | 
		<a href="#" onclick="qgurl('admin.php?file=msg&act=list&sysgroupid={:$sysgroupid}&cateid={:$value[id]}')">内容管理</a>
		<a href="#" onclick="qgurl('admin.php?file=msg&act=add&cateid={:$value[id]}')">添加内容</a>
	</td>
</tr>
</table>
</div>
<!-- end -->

<!-- inc:foot -->
